<template>
  <div class="flex-start __key-value">
    <div class="key pa-12">
      <slot name="key"></slot>
    </div>
    <div class="value pa-12" v-if="onlyKey===false">
      <slot name="value"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "key-value",
  props: {
    onlyKey: {
      type: Boolean,
      default: false
    }
  }
}
</script>

<style lang="scss">

.key, .value {
  text-align: center;
  background-color: #94bde4;
  border: 1px solid #e1e1e1;
  line-height: 32px;
  min-width: 200px;
  height: 32px;
  font-size: 14px;
}

.value {
  border-left: 0;
  background-color: #FFFFFF;
}


</style>
